﻿<Select Color="Color.Primary" Items="@Items" @bind-Value="@Model.Name"></Select>

@code {
    private Foo Model { get; set; } = new Foo() { Name = "Beijing" };

    /// <summary>
    /// 获得 默认数据集合
    /// </summary>
    protected IEnumerable<SelectedItem> Items = new SelectedItem[]
    {
        new SelectedItem ("Beijing", "北京"),
        new SelectedItem ("Shanghai", "上海") { Active = true }
    };
}
